<?php


namespace plugin\coleopenapi\app\admin\validate;


use app\common\validate\BaseValidate;

class ApiLogicValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'method' => 'require',
        'target' => 'require',
        'status' => 'require',
        'title' => 'require',
        'desc' => 'must',
        'module' => 'require',
    ];

    protected $field = [
        'id' => 'ID',
        'method' => '接口标识',
        'target' => '控制器',
        'status' => '接口状态',
        'title' => '接口名称',
        'desc' => '接口描述',
        'module' => '接口模块',
    ];
    protected $scene = [
        "id" => [
            'id',
        ],
        "add" => [
            'method',
            'target',
            'status',
            'title',
            'desc',
            'module',
        ],
        "update" => [
            'id',
            'method',
            'target',
            'status',
            'title',
            'desc',
            'module',
        ],
    ];
}